package com.ruoyi.system.mapper;

import com.ruoyi.common.core.domain.entity.CustomerUser;
import com.ruoyi.common.core.domain.entity.LoginVO;
import org.apache.ibatis.annotations.Param;

public interface CustomerUserMapper  {

    // 1.查询用户
    LoginVO selectUser( @Param("phoneNumber") String phoneNumber);

    // 2.插入普通用户
    int insertCustomerUser(CustomerUser customerUser);

    // 3.授权
    int authorization(@Param("userId") Long userId, @Param("roleId") Long roleId);

    // 4.根据手机号查询客户ID
    Long selectCustomerIdByPhone(@Param("phoneNumber") String phoneNumber);
}
